﻿@using Nop.Core;

@{
	Layout = "~/Views/Shared/_ColumnsOne.cshtml";
	WebHelper webHelper = new WebHelper(this.Context);
}

@* Returning from LibraPay payment gateway *@

@if (string.IsNullOrEmpty((string)ViewBag.ErrorTitle))
{
	<h2>@T("Plugins.Payments.LibraPay.Shopper.Autorized0")</h2>
	<p>@T("Plugins.Payments.LibraPay.Shopper.Autorized1") @ViewBag.OrderID.</p>
	<p>@T("Plugins.Payments.LibraPay.Shopper.Autorized2")</p>
	<p>@T("Plugins.Payments.LibraPay.Shopper.Autorized3")</p>
}
else
{
	<h2>@ViewBag.ErrorTitle</h2>
	<p>&nbsp;</p>
	<p>@ViewBag.ErrorMessage.Replace("\n", "<br />")</p>
	<p>&nbsp;</p>
	<p>&nbsp;</p>
	@*<p>&raquo; <a href="@webHelper.GetStoreLocation()onepagecheckout">@T("Plugins.Payments.LibraPay.Shopper.ErrRetryCheckout")</a></p>*@
	<p>&nbsp;</p>
}

<p>&nbsp;</p>
<p><a href="@webHelper.GetStoreLocation()" class="button-1">@T("Plugins.Payments.LibraPay.Shopper.ReturnToShopping") &raquo;</a></p>